package org.lanqiao.ssm.common.pay.alipay.core;

import org.lanqiao.ssm.common.constant.LogConstant;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 
 * @Title: Config.java
 * @Package org.lanqiao.ssm.common.pay.alipay.core
 * @Description: 支付宝配置文件类
 * @author 刘伟 15818570028@163.com
 * @date 2016年11月10日 上午9:12:56
 * @version V1.0
 */
public final class Config {
	private final static Logger logger = LoggerFactory.getLogger(Config.class);
	// 开发者应用私钥。java配置PKCS8格式，PHP/.Net语言配置rsa_private_key.pem文件中原始私钥。
	public static final String RSA_RRIVATE_KEY = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBAJtyl1KiXOhUH/YQi6vWNnPqNUKoIvKTAXbvJ49as6Jjg36dvUBq/LKXbiT3GTr68cWfU1FGUhOqGLgSTrOVm1GMh3ty6cUwjJ7RGA0ueKjuygImkomiIJZFPJqXAdFQOO2w5pJTn0hx5RZ3aZwhl7CzE+oZXT17h1PQ0O1q0aHVAgMBAAECgYB31y88YLoZzwlY7caQMrSGRtDK088ljhn59ERea4HDts6gZcGKkTDCCqa6ztlftCmCvuM/7GPIj0FBX7PXFYbIc09/e4RxCYe8AZMPXSmkc3kbGsh4KAitXXyfJXqFVVxHl+6UXjfgWJxrPpVNsVJKO+h/c871mKxOjEx/ogp+IQJBAMxCMk3RDturyHd+JryToaSrqlXNdN8yevFnT1bQeT3n+Db9QGCDsi16vXIwcoq0GChvTAUsf5MuuRlKGw6WLp0CQQDC0xddEJUQJ0NZuPHb+R1/KPcV+CJsjqa8CsafKVRNbW89jgj/t8DD3J621k7NR/3dzPpQNajd9viaAyazEP6ZAkAt5K2yyEcjWjyHhKOleTI3co6qCqi4wXnYJZMw+VRUcXtWt54wUUbGay6HqpUBzyciZqdY/j+HzVavdPQRWfMNAkA+LMXRAoC/1fftg1NUY00hjr5D+Ztqz5+wdTPsCXGJADq3B0Qh78+J8jeInB4r7yS6izb7MBTDOZUe+ZB5JxxJAkEAnE20TGPUJqbL+ptZk4wf0WV2a591jFCzIz/1iKT36WPogJuR1VOb9+OC+PDrRfIIedC+gNiN/fOkxI9MHLpPaA==";
	/** 支付宝账户登录授权业务：入参pid值 */
	public static final String PID = "2088121353057315";
	/** 支付宝账户登录授权业务：入参target_id值 */
	public static final String TARGET_ID = "";
	// 接口请求网关，固定值
	public static final String URL = "https://openapi.alipay.com/gateway.do";
	// 商户应用APPID，只要您的应用中包含服务窗接口且是开通状态，就可以用此应用对应的appid。开发者可登录开放平台-管理中心-对应应用中查看
	public static final String APPID = "2016022701168630";
	// 编码字符集。默认 utf-8
	public static final String CHARSET = "utf-8";
	// 返回格式。默认json
	public static final String FORMAT = "json";
	// 支付宝公钥，用于获取同步返回信息后进行验证，验证是否是支付宝发送的信息。
	public static final String ALIPAY_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDI6d306Q8fIfCOaTXyiUeJHkrIvYISRcc73s3vF1ZT7XN8RNPwJxo8pWaJMmvyTn9N4HQ632qJBVHf8sxHi/fEsraprwCtzvzQETrNRwVxLO5jVmRGi60j8Ue1efIlzPXV9je9mkjzOmdssymZkh2QhUrCmZYI/FCEa3/cNMW0QIDAQAB";
	// 支付宝回调url
	private static String ALIPAY_NOTIFY_URL = "http://220.231.189.27:2016/ebus-custom/bankGatewayApi/alipayReturn";

	public static String getALIPAY_NOTIFY_URL() {
		return ALIPAY_NOTIFY_URL;
	}

	public void setALIPAY_NOTIFY_URL(String aLIPAY_NOTIFY_URL) {
		logger.info(LogConstant.LOG_MARK + "支付宝回调地址:" + aLIPAY_NOTIFY_URL);
		ALIPAY_NOTIFY_URL = aLIPAY_NOTIFY_URL;
	}

}